package cn.tedu.car.backend.user.mapper;


import cn.tedu.car.backend.user.enums.UserStatus;
import cn.tedu.car.backend.user.pojo.dto.UserQueryParam;
import cn.tedu.car.backend.user.pojo.po.SystemuserPO;
import cn.tedu.car.backend.user.pojo.vo.LoginVO;
import cn.tedu.car.backend.user.pojo.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SystemuserMapper {
    LoginVO selectLoginSystemuser(String username);

    int insertSystemuser(SystemuserPO systemuserPO);
    int updateSystemuser(SystemuserPO systemuserPO);

    List<UserVO> listSystemuser(UserQueryParam userQueryParam);

    int updateSystemuserStatus(@Param("id") Long id, @Param("oldStatus") UserStatus oldStatus, @Param("newerStatus") UserStatus newerStatus);
}
